from dataclasses import dataclass,asdict,field

@dataclass
class CustomerData:
    real_name:str
    phone:str
    pwd:str
    true_pwd:str
    birthday:str=None
    card_id:str=None
    mark:str=None

if __name__ == '__main__':
    c1 = CustomerData(real_name='张三',phone='13434558903',pwd='321654',true_pwd='321654')
    print(c1)
    

